package MP.ASTs;

import MP.CompilationException;
import MP.lexicalanalysis.Token;

public class VarDeclAST extends OneDeclAST {
	public TypeAST t;
	public VarDeclAST(Token n, TypeAST type) {
		name = n;
		t = type;
		t.parent = this;
	}
	
	public Object visit(Visitor v, Object o) throws CompilationException{
		return v.visitVarDeclAST(this,o);
	}
}